class ContactInfo {
    String streetAddress
    String townAddress
    String zipcode
    String email
    String prefEmail
    String cellPhone
    String homePhone
    String workPhone
    Date   lastUpdated = new Date()

    static optionals = ["email", "cellPhone", "workPhone", "prefContactTime"]
    static constraints = {
        streetAddress()
        townAddress()
        zipcode(matches:"[0-9]+",maxLength:5)
        prefEmail(blank:false)
        cellPhone()
        email(email:true)
        homePhone()
        workPhone()
     }
     String toString() { "${this.prefEmail}" }
}
